package com.hzhr.iot.statis.dao.mapper.custom;

import com.hzhr.iot.statis.entity.DeviceMonthlyGasConsumeEntity;
import com.hzhr.iot.statis.entity.ext.DeviceMonthlyGasConsumeEntityExt;
import com.hzhr.iot.statis.queryModel.DeviceMonthlyGasConsumeQueryModel;

import java.util.List;

public interface DeviceMonthlyGasConsumeEntityCustomMapper {
    //批量新增
    int insertBatch(List<DeviceMonthlyGasConsumeEntity> recordList);
    //批量更新
    int updateBatch(List<DeviceMonthlyGasConsumeEntity> recordList);
    //批量更新
    int updateBatchSelective(List<DeviceMonthlyGasConsumeEntity> recordList);
    //通用查询
    List<DeviceMonthlyGasConsumeEntityExt> selectExt(DeviceMonthlyGasConsumeQueryModel queryModel);
    //通用查询数量
    int selectCount(DeviceMonthlyGasConsumeQueryModel queryModel);
    //通用修改属性
    int updateProps(DeviceMonthlyGasConsumeQueryModel queryModel);
    //通用删除
    int delete(DeviceMonthlyGasConsumeQueryModel queryModel);

    //自定义查询
    Double selectDataSum(DeviceMonthlyGasConsumeQueryModel queryModel);
}
